package com.jcroke.PC32.memory;

import java.util.LinkedHashMap;

import com.jcroke.PC32.datum.Datum;

/**
 * 
 * @author jcroke
 *
 */
public class PnodeMemoryFrame {

	// get frame element
	public Datum getFe(String address) {
		Datum rDatum = null;
		if (this._f != null) {
			if (_f.containsKey(address)) {
				rDatum = _f.get(address);
			}
		}
		return rDatum;
	}

	// set frame element
	public void setFe(String s, Datum d) {
		if (this._f == null) {
			this._f = new LinkedHashMap<String, Datum>();
		}
		_f.put(s, d);
	}
	
	// get frame
	public LinkedHashMap<String, Datum> getF() {
		if (this._f == null) {
			this._f = new LinkedHashMap<String, Datum>();
		}
		return(_f);
	}
	
	// set frame
	public void setF(LinkedHashMap<String, Datum> f) {
		this._f = f;
	}

	private LinkedHashMap<String, Datum> _f = null;
}
